//
//  Phone.m
//  OC2_方法
//
//  Created by dllo on 15/10/23.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "Phone.h"

@implementation Phone

- (NSString *)name
{
    return _name;
}

- (void)setName:(NSString *)name
{
    _name = name;
}

- (NSString *)color
{
    return _color;
}

- (void)setColor:(NSString *)color
{
    _color = color;
}

-(NSInteger)number
{
    return _number;
}

- (void)setNumber:(NSInteger)number
{
    _number = number;
}

- (CGFloat)weight
{
    return _weight;
}

-(void)setWeight:(CGFloat)weight
{
    _weight = weight;
}

-(id)initWithName:(NSString *)name color:(NSString *)color number:(NSInteger)number weight:(CGFloat)weight
{

    _name = name;
    _color = color;
    _number = number;
    _weight = weight;
    return self;
    

}

-(void)info
{

    NSLog(@"%@ %@ %ld %.2f", _name, _color, _number, _weight);

}





@end
